From 06b4c1765cdf7c9e93ad3cb859582a393d3eac4d Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Thu, 17 Jan 2013 16:48:25 +0000 Subject: [PATCH] xen: arm: fix assert in select_user_reg The condition was inverted. Signed-off-by: Ian Campbell Acked-by: Stefano Stabellini Committed-by: Ian Campbell --- xen/arch/arm/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index f42e4e91fe..8afcf0c4ab 100644 --- a/xen/arch/arm/traps.c +++ b/xen/arch/arm/traps.c @@ -75,7 +75,7 @@ static void print_xen_info(void) uint32_t *select_user_reg(struct cpu_user_regs *regs, int reg) { - BUG_ON( guest_mode(regs) ); + BUG_ON( !guest_mode(regs) ); /* * We rely heavily on the layout of cpu_user_regs to avoid having -- 2.30.2